| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Public Member Functions | List of all members
nkDebug::TestFunction Class Referencefinal

Encapsulates a function registered for testing. More...

## Public Member Functions
| TestFunction (nkMemory::StringView name, std::function< void()> function) noexcept
| ~TestFunction ()
std::function< void()> | getFunction () const
nkMemory::StringView | getName () const

## Detailed Description

Encapsulates a function registered for testing.

## Constructor & Destructor Documentation

## ◆ TestFunction()

nkDebug::TestFunction::TestFunction | ( | nkMemory::StringView | name,
|  | std::function< void()> | function
| ) |  |
| noexcept

Constructor.

Parameters

  name | The function's name.
  function | The actual function encapsulated.

## ◆ ~TestFunction()

nkDebug::TestFunction::~TestFunction | ( |  | ) |

Destructor.

## Member Function Documentation

## ◆ getFunction()

std::function<void ()> nkDebug::TestFunction::getFunction | ( |  | ) | const

Returns
  The function encapsulated.

## ◆ getName()

nkMemory::StringView nkDebug::TestFunction::getName | ( |  | ) | const

Returns
  The function's attached name.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsDebug/Testing/TestFunction.h